var inTime = {};

$(function(){		
	
	$(window).bind("language-event", function(event, language) {
		$("#header h3").text(inTime.resources[language].subtitle);
		$("#description").text(inTime.resources[language].description);
		$("#footer-home").text(inTime.resources[language].footer.home);
		$("#footer-about").text(inTime.resources[language].footer.about);
		$("#footer-terms").text(inTime.resources[language].footer.terms);
		$("#footer-privacy").text(inTime.resources[language].footer.privacy);
		$("#footer-help").text(inTime.resources[language].footer.help);
		$("#footer-contact").text(inTime.resources[language].footer.contact);
	});

	$("#free").button();
	$("#pay").button();
	
	$("#header button").click(function() {
		$(window).triggerHandler("language-event", [this.id]);
	});
	
	$(window).triggerHandler("language-event", ["de"]);
});